import axios from 'axios';

const localhost = 'http://localhost:3000';
console.log(`${localhost}/fileData`);

export const useFileDataApi = ({ userid }) =>
  axios.get(`${localhost}/fileData`, { params: { userid } });

export const useGetFileDataApi = ({ userid, filePath }) =>
  axios.post(`${localhost}/getFile`, { userid, filePath });

export const useDownloadFileApi = ({ filePath }) =>
  axios.get(`${localhost}/downloadFile`, { params: { filePath } });
